package com.sike.javacore.serializer.hessian;

import com.caucho.hessian.io.HessianOutput;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Arrays;

public class Hessian01Test {
    public static void main(String[] args) throws IOException {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        HessianOutput hessianOutput = new HessianOutput(bos);
        hessianOutput.writeObject(1024);
        System.out.println("序列化" + Arrays.toString(bos.toByteArray()));

        System.out.println(4 << 8);
    }
}
